package com.ithuangyl.find;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.ithuangyl.annotation.BindPath;
import com.ithuangyl.aroute.ARouter;
import com.ithuangyl.common.base.BaseActivity;

import androidx.annotation.Nullable;

@BindPath("activity/find")
public class FindActivity extends BaseActivity {

    @Override
    protected int getLayout() {
        return R.layout.activity_find;
    }

    @Override
    protected void initView() {
        findViewById(R.id.id_btn).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ARouter.create().jumpActivityForResult(FindActivity.this, "activity/mine", null, 100);
            }
        });
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        Log.e(getClass().getSimpleName(), "requestCode: " + requestCode + " resultCode: " + resultCode);
    }
}
